package com.ruoyi.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 article
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String title;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String content;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long problemId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long publicTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long sortTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long commentsNum;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer allowComment;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isNotice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProblemId(Long problemId) 
    {
        this.problemId = problemId;
    }

    public Long getProblemId() 
    {
        return problemId;
    }
    public void setPublicTime(Long publicTime) 
    {
        this.publicTime = publicTime;
    }

    public Long getPublicTime() 
    {
        return publicTime;
    }
    public void setSortTime(Long sortTime) 
    {
        this.sortTime = sortTime;
    }

    public Long getSortTime() 
    {
        return sortTime;
    }
    public void setCommentsNum(Long commentsNum) 
    {
        this.commentsNum = commentsNum;
    }

    public Long getCommentsNum() 
    {
        return commentsNum;
    }
    public void setAllowComment(Integer allowComment) 
    {
        this.allowComment = allowComment;
    }

    public Integer getAllowComment() 
    {
        return allowComment;
    }
    public void setIsNotice(Integer isNotice) 
    {
        this.isNotice = isNotice;
    }

    public Integer getIsNotice() 
    {
        return isNotice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("userId", getUserId())
            .append("problemId", getProblemId())
            .append("publicTime", getPublicTime())
            .append("updateTime", getUpdateTime())
            .append("sortTime", getSortTime())
            .append("commentsNum", getCommentsNum())
            .append("allowComment", getAllowComment())
            .append("isNotice", getIsNotice())
            .toString();
    }
}
